Fix bug #11261 with cursor movement in a continued line when header line is present.
authorEli Zaretskii <eliz@gnu.org>
Tue, 17 Apr 2012 15:25:17 +0000 (18:25 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 17 Apr 2012 15:25:17 +0000 (18:25 +0300)
commit10621162947002c044bb76369f1077d39c711384
tree0d4e43f15f5bb84f081c48bb2b23cf221e3ca2d3
parent1544205c4240638652ec94a116d86a28b705b006
Fix bug #11261 with cursor movement in a continued line when header line is present.

 src/xdisp.c (string_buffer_position_lim): Limit starting position to BEGV.
 (set_cursor_from_row): If called for a mode-line or header-line
 row, return zero immediately.
 (try_cursor_movement): If inside continuation line, don't back up
 farther than the first row after the header line, if any.  Don't
 consider the header-line row as "partially visible", even if
 MATRIX_ROW_PARTIALLY_VISIBLE_P returns non-zero.
src/ChangeLog
src/xdisp.c